cmake_minimum_required(VERSION 3.20)

project(coroutines_ts VERSION 0.00.01)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# add_compile_definitions(BOOST_ASIO_ENABLE_HANDLER_TRACKING)

add_compile_options(-g)

find_package(Boost COMPONENTS context system thread coroutine REQUIRED)

file(GLOB_RECURSE COROUTINUES_SROUCES "./src/chat/*.cpp")

add_executable(chat_server ./src/chat/chat_server.cpp)
add_executable(chat_client ./src/chat/chat_client.cpp)

target_link_libraries(chat_server PUBLIC
    ${Boost_LIBRARIES}
)

target_link_libraries(chat_client PUBLIC
    ${Boost_LIBRARIES}
)
